//	mpsf.event.core.cpp

#include <mpsf.event.h>

void *evtcore_class;
t_evtcore *__core;

__declspec(dllexport) void main(void)
{
	setup((t_messlist**)&evtcore_class, (method)evtcore_new,
		(method)evtcore_free, (short)sizeof(t_evtcore), (method)0L, 0);
	__core = NULL;
	// add messages
}

void* evtcore_new(void)
{
	t_evtcore *x;
	if(__core == NULL)
	{
		error("an event core object already exists!");
		return NULL;
	}
	x = (t_evtcore*)newobject(evtcore_class);
	//init stuff
	__core = x;
	return x;
}

void evtcore_free(t_evtcore *x)
{
	//free stuff
}

